package com.jr.mapper;

import com.jr.entry.BookInfo;
import com.jr.entry.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersMapper {
    List<Users> selectUserByInfo(Users user);
    List<BookInfo> selectAll();
    List<BookInfo> selectAllBook(@Param("pageSize") int pageSize,@Param("offset") int offset);
    List<BookInfo> selectBookByInfo(BookInfo bookInfo);
    BookInfo selectBookByBookCode(BookInfo bookInfo);
    int updateBook(BookInfo bookInfo);
    int deleteBook(String book_code);
    int addBook(BookInfo bookInfo);
}
